﻿<?php

use yii\db\Schema;
use yii\db\Migration;

class m150506_075636_add_material extends Migration
{
    public function up()
    {
    	$this->addColumn('{{%material}}', 'duration', " int(10) unsigned NOT NULL DEFAULT '0' COMMENT '视频素材的持续时长，展示类为 0' after height");
    }

    public function down()
    {
    	$this->dropColumn('{{%material}}', 'duration');
    }
}
